package com.wxp.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;

import com.wxp.entity.User;

public interface UserService {
	
	 Page<User> findAll(Pageable pageable);
     Page<User> findAll(Specification<User> spec, PageRequest pageRequest);
     User get(String userId);
     List<User> findAll();
     List<User> findAll(Specification<User> spec);
     List<User> findAll(Specification<User> spec,Sort sort);
     public String saveUser(User user);
     public void deleteUser(User user);
     public void deleteUser(String userId);
     public User getByNameCode(String nameCode) ;
     public void saveUserRole(String userId,String data);
 
    
}
